CC=gcc
#CFLAGS += -c 
#CFLAGS += -c  -Wall -Werror 
CFLAGS += -c -g  -Wall -Werror
LDFLAGS += -ldl -lpthread

OBJS = main.o bm806.o ec20.o boardtype_306A.o common.o logger.o option.o queue.o serial.o sim7000.o a9500.o
all:dialtool_new

dialtool_new : $(OBJS)
	$(CC)  $(INC) -g -o $@ $(OBJS) $(LDFLAGS) 

clean:
	rm *.o -f
	rm dialtool_new -rf

%.o: %.c *.h
	$(CC) $(CFLAGS) $< -o $@
